package com.chinaisafe.user.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chinaisafe.user.entity.SysUser;
import com.chinaisafe.user.vo.response.SysUserRespVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * SysUserMapper
 * Description：用户Mapper接口
 *
 * @author xuefu.shu
 * @date 2024-07-15 09:33:58
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 根据条件获取用户分页列表
     * @param page 分页对象
     * @param queryWrapper 筛选参数
     * @return IPage<SysUserRespVO> 查询结果
     * @author xuefu.shu
     * @date 2024-07-15 09:33:58
     */
    IPage<SysUserRespVO> getPageList(Page<SysUser> page, @Param(Constants.WRAPPER) QueryWrapper<SysUser> queryWrapper);
}
